﻿<Window x:Class="LastFmReader.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" 
        Loaded="Window_Loaded"
        Cursor="Wait"
        FontFamily="Arial"
        FontSize="10pt"
        Height="900" 
        Width="1500">
    <Window.Resources>
        <DataTemplate x:Key="TrackTemplate">
            <DataTemplate.Resources>
                <Style TargetType="TextBlock">
                    <Setter Property="Margin" Value="5"/>
                </Style>
            </DataTemplate.Resources>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Column="0" 
                           Width="150"
                           Text="{Binding Path=Artist}"/>
                <TextBlock Grid.Column="1"
                           Width="200"
                           Text="{Binding Path=Title}"/>
            </Grid>
        </DataTemplate>
    </Window.Resources>
    <DockPanel>
        <ListBox DockPanel.Dock="Right"
                 BorderBrush="Navy"
                 BorderThickness="2"
                 Width="400"
                 ItemTemplate="{StaticResource TrackTemplate}"
                 Name="TracksListBox"/>
        <WebBrowser Source="http://www.last.fm/user/gideonrv"
                    LoadCompleted="LastFmBrowser_LoadCompleted"
                    Name="LastFmBrowser"/>
    </DockPanel>
</Window>
